<template>
  <div id="app">
    <!-- <loading v-show="isLoading"></loading> -->
    <keep-alive v-if="$route.meta.keepAlive">
      <router-view></router-view>
    </keep-alive>
    <router-view v-else></router-view>
  </div>
</template>
<script>
import Loading from '@/components/Loading'
import { mapGetters } from 'vuex'
export default {
  name: 'App',
  computed: {
    ...mapGetters(['isLoading'])
  },
  components: {
    Loading
  }
}
</script>
<style lang="scss"></style>
